export default defineRoute(() => [
  {
    path: '/',
    component: Layouts.default,
    children: [
      {
        path: '',
        name: RN.INDEX,
        component: () => import('./index.vue'),
      },
      {
        path: '/category/:typeCode',
        name: RN.GAMELIST,
        props: route => ({ typeCode: route.params.typeCode }),
        component: () => import('./GameList.vue'),
      },
      {
        path: '/vendors',
        name: RN.VENDORS,
        component: () => import('./GameVendors.vue'),
      },
      {
        path: '/provider-list/:providerCode/:providerName',
        name: RN.GAMELISTPROVIDER,
        props: route => ({ providerCode: route.params.providerCode, providerName: route.params.name }),
        component: () => import('./GameList.vue'),
      },
    ],
  },
]);
